package com.company.project.mapper;

import com.company.project.entity.TCallbakLogEntity;
import com.company.project.entity.TCallbakTaskEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 
 * 
 * @author wenbin
 * @email *****@mail.com
 * @date 2024-06-07 16:56:25
 */
@Mapper
public interface TCallbakTaskMapper extends BaseMapper<TCallbakTaskEntity> {

    List<TCallbakTaskEntity> selectListByFlag(@Param("type")int type);

    void updateFlag(@Param("list") List<TCallbakTaskEntity> tCallbakTaskEntities);

    void deleteByFlag(@Param("list") List<String> sessionIds);

    void deleteHJ(Date calltime);

    void insertHJ(Date calltime);

    void insertCallLogs(@Param("list") List<TCallbakLogEntity> callLogList);

    List<TCallbakTaskEntity> selectTypeBYAddtime();

    void deleteByList(@Param("list")List<TCallbakTaskEntity> tCallbakTaskEntities);
}
